Crate medians

source ·
Expand description

Fast new algorithms for computing medians of (one dimensional) vectors

Modules§

Enums§

  • Enum for results of odd/even medians with simple numeric endtypes. Convert to a single f64 by applying .into()
  • custom error
  • Enum for results of odd/even medians of complex endtypes

Traits§

  • Fast 1D generic medians, plus related methods
  • Fast 1D medians of floating point data, plus related methods

Functions§

  • Fast medians of u8 end type by fast radix search
  • Fast medians of u64 end type by binary partitioning.
    Changes the order of the input data
  • Convenience function for building MedError
    from error kind name and payload message, which can be either &str or String

Type Aliases§

  • Shorthand type for medians errors with message payload specialized to String